/**
 * 检测浏览器是否支持 Clipboard API
 * @returns {boolean} 返回是否支持剪贴板操作
 */
export const isClipboardSupported: () => boolean = (): boolean => {
  return !!(
    navigator.clipboard &&
    'write' in navigator.clipboard &&
    typeof window.ClipboardItem !== 'undefined'
  )
}
